Mahiruoshi commited on
Commit
0ff863b
1 Parent(s): 2094a67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -4
app.py CHANGED
@@ -158,11 +158,22 @@ net_g_ms = SynthesizerTrn(
158
  _ = net_g_ms.eval()
159
 
160
  _ = utils.load_checkpoint("G_1415000.pth", net_g_ms, None)
161
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  app = gr.Blocks()
163
-
164
-
165
-
166
  with app:
167
  with gr.Tabs():
168
 
 
158
  _ = net_g_ms.eval()
159
 
160
  _ = utils.load_checkpoint("G_1415000.pth", net_g_ms, None)
161
+ def inference(text):
162
+ html = (
163
+ "<div >"
164
+ "<img src='chara_ayumu.png' alt='image One'>"
165
+ + "</div>"
166
+ )
167
+ return html
168
+ gr.Interface(
169
+ inference,
170
+ gr.inputs.Textbox(placeholder="Enter sentence here..."),
171
+ outputs=["html"],
172
+ title=title,
173
+ allow_flagging="never",
174
+
175
+ ).launch(enable_queue=True)
176
  app = gr.Blocks()
 
 
 
177
  with app:
178
  with gr.Tabs():
179