Chan55 commited on
Commit
a544f9a
Β·
1 Parent(s): d1ea417

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -12
app.py CHANGED
@@ -106,16 +106,6 @@ def run_audio_prompt(audio, chat_history):
106
  message_transcription = model.transcribe(audio)["text"]
107
  _, chat_history = run_text_prompt(message_transcription, chat_history)
108
  return None, chat_history
109
- file_path = "myfile.txt"
110
-
111
- try:
112
- with open(file_path, "r") as file:
113
- file_contents = file.read()
114
-
115
- except FileNotFoundError:
116
- print(f"File not found at: {file_path}")
117
- except IOError:
118
- print(f"Error reading file: {file_path}")
119
 
120
  def process_text(conversation, text):
121
  # print(text)
@@ -165,7 +155,7 @@ with gr.Blocks(title="hi") as app2:
165
 
166
  demo = gr.TabbedInterface([app2], [ "Interview"])
167
 
168
- demo.launch(share=False,
169
  debug=False,
170
- server_name="localhost")
171
 
 
106
  message_transcription = model.transcribe(audio)["text"]
107
  _, chat_history = run_text_prompt(message_transcription, chat_history)
108
  return None, chat_history
 
 
 
 
 
 
 
 
 
 
109
 
110
  def process_text(conversation, text):
111
  # print(text)
 
155
 
156
  demo = gr.TabbedInterface([app2], [ "Interview"])
157
 
158
+ demo.launch(share=True,
159
  debug=False,
160
+ )
161