Spaces:
Paused
Paused
ManishThota
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -193,7 +193,8 @@ def gradio_predict(video,image, question):
|
|
193 |
return answer
|
194 |
|
195 |
def export_csv(d):
|
196 |
-
df = pd.DataFrame(
|
|
|
197 |
df.to_csv("output.csv", sep=',')
|
198 |
print(df)
|
199 |
return gr.File(value="output.csv", visible=True)
|
|
|
193 |
return answer
|
194 |
|
195 |
def export_csv(d):
|
196 |
+
df = pd.DataFrame(columns=list(d.keys()))
|
197 |
+
df.loc[0] = list(d.values())
|
198 |
df.to_csv("output.csv", sep=',')
|
199 |
print(df)
|
200 |
return gr.File(value="output.csv", visible=True)
|