Spaces:
Paused
Paused
ManishThota
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -194,8 +194,10 @@ def gradio_predict(video,image, question):
|
|
194 |
|
195 |
def export_csv(d):
|
196 |
print(d)
|
197 |
-
|
198 |
-
|
|
|
|
|
199 |
df = pd.DataFrame(columns=list(d.keys()))
|
200 |
df.loc[0] = list(d.values())
|
201 |
df.to_csv("output.csv", sep=',')
|
|
|
194 |
|
195 |
def export_csv(d):
|
196 |
print(d)
|
197 |
+
actual_dict = ast.literal_eval(d)
|
198 |
+
|
199 |
+
print(type(actual_dict)) # This will show <class 'dict'>
|
200 |
+
print(actual_dict)
|
201 |
df = pd.DataFrame(columns=list(d.keys()))
|
202 |
df.loc[0] = list(d.values())
|
203 |
df.to_csv("output.csv", sep=',')
|