Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ def generate_response(message, history):
|
|
| 64 |
|
| 65 |
def upload_file(data_file):
|
| 66 |
with open(data_file.name, "r") as f:
|
| 67 |
-
|
| 68 |
gr.Info("Project file Uploaded. You can now query the document")
|
| 69 |
# with open("/content/project_data.json", "w") as f:
|
| 70 |
# json.dump(data, f)
|
|
|
|
| 64 |
|
| 65 |
def upload_file(data_file):
|
| 66 |
with open(data_file.name, "r") as f:
|
| 67 |
+
data = json.load(f)
|
| 68 |
gr.Info("Project file Uploaded. You can now query the document")
|
| 69 |
# with open("/content/project_data.json", "w") as f:
|
| 70 |
# json.dump(data, f)
|