Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,8 @@ import fastapi
|
|
| 10 |
from typing import List, Dict
|
| 11 |
import httpx
|
| 12 |
import pandas as pd
|
| 13 |
-
|
|
|
|
| 14 |
UseMemory=True
|
| 15 |
|
| 16 |
HF_TOKEN=os.environ.get("HF_TOKEN")
|
|
@@ -107,7 +108,8 @@ def chat(message, history):
|
|
| 107 |
df=pd.DataFrame()
|
| 108 |
|
| 109 |
if UseMemory:
|
| 110 |
-
outputfileName = 'ChatbotMemory.csv'
|
|
|
|
| 111 |
df = store_message(message, response, outputfileName) # Save to dataset
|
| 112 |
basedir = get_base(outputfileName)
|
| 113 |
|
|
|
|
| 10 |
from typing import List, Dict
|
| 11 |
import httpx
|
| 12 |
import pandas as pd
|
| 13 |
+
|
| 14 |
+
|
| 15 |
UseMemory=True
|
| 16 |
|
| 17 |
HF_TOKEN=os.environ.get("HF_TOKEN")
|
|
|
|
| 108 |
df=pd.DataFrame()
|
| 109 |
|
| 110 |
if UseMemory:
|
| 111 |
+
#outputfileName = 'ChatbotMemory.csv'
|
| 112 |
+
outputfileName = 'ChatbotMemory2.csv' # Test first time file create
|
| 113 |
df = store_message(message, response, outputfileName) # Save to dataset
|
| 114 |
basedir = get_base(outputfileName)
|
| 115 |
|