Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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, '
|
165 |
|
166 |
demo = gr.Interface(
|
167 |
fn=random_response,
|
168 |
-
inputs=[
|
169 |
-
outputs=[gr.Textbox(rtl = True , text_align = 'rights'),
|
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 |
|