Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -74,16 +74,16 @@ vectorstore = Chroma(
|
|
74 |
|
75 |
# Prepare the logging functionality
|
76 |
|
77 |
-
log_file = Path("logs/") / f"data_{uuid.uuid4()}.json"
|
78 |
-
log_folder = log_file.parent
|
79 |
-
|
80 |
-
scheduler = CommitScheduler(
|
81 |
-
repo_id="imat_db",
|
82 |
-
repo_type="dataset",
|
83 |
-
folder_path=log_folder,
|
84 |
-
path_in_repo="data",
|
85 |
-
every=2
|
86 |
-
)
|
87 |
|
88 |
# Define the Q&A system message
|
89 |
qna_system_message = """
|
@@ -217,7 +217,7 @@ def predict(user_input, timeout_seconds=1800): # 30 minutes = 1800 seconds
|
|
217 |
))
|
218 |
f.write("\n")
|
219 |
|
220 |
-
|
221 |
|
222 |
# Set-up the Gradio UI
|
223 |
# Add text box.
|
|
|
74 |
|
75 |
# Prepare the logging functionality
|
76 |
|
77 |
+
#log_file = Path("logs/") / f"data_{uuid.uuid4()}.json"
|
78 |
+
#log_folder = log_file.parent
|
79 |
+
|
80 |
+
#scheduler = CommitScheduler(
|
81 |
+
# repo_id="imat_db",
|
82 |
+
# repo_type="dataset",
|
83 |
+
# folder_path=log_folder,
|
84 |
+
# path_in_repo="data",
|
85 |
+
# every=2
|
86 |
+
#)
|
87 |
|
88 |
# Define the Q&A system message
|
89 |
qna_system_message = """
|
|
|
217 |
))
|
218 |
f.write("\n")
|
219 |
|
220 |
+
return prediction
|
221 |
|
222 |
# Set-up the Gradio UI
|
223 |
# Add text box.
|