Ahmed107 commited on
Commit
d2828e6
·
verified ·
1 Parent(s): 6771592

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -161,12 +161,12 @@ def random_response(message):
161
  new_df.to_csv('transcripts.csv', index=False)
162
  #make sure the index is int and the data sorted by the index from 0 to the end
163
  new_df['index'] = new_df['index'].astype(int)
164
- return full_transcript, 'audio.wav' , new_df.sort_values(by=['index'])
165
 
166
  demo = gr.Interface(
167
  fn=random_response,
168
- inputs=["text"],
169
- outputs=[gr.Textbox(rtl = True , text_align = 'rights'),"audio","dataframe"],
170
  theme=gr.themes.Monochrome(),
171
  )
172
 
 
161
  new_df.to_csv('transcripts.csv', index=False)
162
  #make sure the index is int and the data sorted by the index from 0 to the end
163
  new_df['index'] = new_df['index'].astype(int)
164
+ return full_transcript, 'meet.mp4' , new_df.sort_values(by=['index'])
165
 
166
  demo = gr.Interface(
167
  fn=random_response,
168
+ inputs=[gr.Textbox(label='Tiktok Video URL')],
169
+ outputs=[gr.Textbox(rtl = True , text_align = 'rights',label='Full text transcript'),gr.Video(label='Tiktok Video'),gr.Dataframe(label='Speakers')],
170
  theme=gr.themes.Monochrome(),
171
  )
172