textToSQL commited on
Commit
c0e10b6
·
1 Parent(s): c279ea6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -78,7 +78,7 @@ with demo:
78
  """
79
 
80
  b1.click(transcribe, inputs=audio, outputs=text1)
81
- b2.click(get_completion, outputs=text2)
82
 
83
 
84
  # b1.click(transcribe, inputs=audio, outputs=text1)
@@ -86,7 +86,7 @@ with demo:
86
 
87
 
88
 
89
- demo.launch()
90
 
91
  # In this example, the process_text function just converts the input text to uppercase, but you can replace it with your desired function. The Gradio Blocks interface will have two buttons: "Transcribe audio" and "Process text". The first button transcribes the audio and fills the first textbox, and the second button processes the text from the first textbox and fills the second textbox.
92
 
 
78
  """
79
 
80
  b1.click(transcribe, inputs=audio, outputs=text1)
81
+ b2.click(get_completion, inputs=prompt, outputs=text2)
82
 
83
 
84
  # b1.click(transcribe, inputs=audio, outputs=text1)
 
86
 
87
 
88
 
89
+ demo.launch(share=True)
90
 
91
  # In this example, the process_text function just converts the input text to uppercase, but you can replace it with your desired function. The Gradio Blocks interface will have two buttons: "Transcribe audio" and "Process text". The first button transcribes the audio and fills the first textbox, and the second button processes the text from the first textbox and fills the second textbox.
92