Olivier-Truong commited on
Commit
150a207
1 Parent(s): 2ce46df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -22,6 +22,13 @@ document.body.appendChild(par);
22
  </script>
23
  """
24
 
 
 
 
 
 
 
 
25
  def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, agree):
26
  if agree == True:
27
  if use_mic == True:
@@ -211,6 +218,7 @@ examples = [
211
 
212
  gr.Interface(
213
  fn=predict,
 
214
  inputs=[
215
  gr.Textbox(
216
  label="Text Prompt",
 
22
  </script>
23
  """
24
 
25
+ br__ = """
26
+ var par = document.createElement("p");
27
+ var text = document.createTextNode("fhsgdjrs hgrtsfya");
28
+ par.appendChild(text);
29
+ document.body.appendChild(par);
30
+ """
31
+
32
  def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, agree):
33
  if agree == True:
34
  if use_mic == True:
 
218
 
219
  gr.Interface(
220
  fn=predict,
221
+ _js=br__
222
  inputs=[
223
  gr.Textbox(
224
  label="Text Prompt",