Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,8 +33,6 @@ repo = Repository(
|
|
| 33 |
print(f"Repo local_dir: {repo.local_dir}")
|
| 34 |
print(f"Repo files: {os.listdir(repo.local_dir)}")
|
| 35 |
|
| 36 |
-
store_message.count_calls = 1 #initiases the count at one. We want to count how many messages stored before pushing back to repo.
|
| 37 |
-
|
| 38 |
def generate_text() -> str:
|
| 39 |
with open(DATA_FILE) as file:
|
| 40 |
text = ""
|
|
@@ -61,6 +59,7 @@ def store_message(chatinput: str, chatresponse: str):
|
|
| 61 |
|
| 62 |
return generate_text()
|
| 63 |
|
|
|
|
| 64 |
|
| 65 |
#gets the index file which is the context data
|
| 66 |
def get_index(index_file_path):
|
|
|
|
| 33 |
print(f"Repo local_dir: {repo.local_dir}")
|
| 34 |
print(f"Repo files: {os.listdir(repo.local_dir)}")
|
| 35 |
|
|
|
|
|
|
|
| 36 |
def generate_text() -> str:
|
| 37 |
with open(DATA_FILE) as file:
|
| 38 |
text = ""
|
|
|
|
| 59 |
|
| 60 |
return generate_text()
|
| 61 |
|
| 62 |
+
store_message.count_calls = 1 #initiases the count at one. We want to count how many messages stored before pushing back to repo.
|
| 63 |
|
| 64 |
#gets the index file which is the context data
|
| 65 |
def get_index(index_file_path):
|