Update app.py
Browse files
app.py
CHANGED
@@ -126,14 +126,14 @@ def talk(prompt, history):
|
|
126 |
with open('file.txt','w+') as data:
|
127 |
data.write(str(historylog))
|
128 |
|
129 |
-
from huggingface_hub import HfApi
|
130 |
-
api = HfApi()
|
131 |
-
api.upload_file(
|
132 |
-
path_or_fileobj="./file.txt",
|
133 |
-
path_in_repo="file.txt",
|
134 |
-
repo_id="Namitg02/Test",
|
135 |
-
repo_type="space"
|
136 |
-
)
|
137 |
|
138 |
print("upload section passed")
|
139 |
|
|
|
126 |
with open('file.txt','w+') as data:
|
127 |
data.write(str(historylog))
|
128 |
|
129 |
+
# from huggingface_hub import HfApi
|
130 |
+
# api = HfApi()
|
131 |
+
# api.upload_file(
|
132 |
+
# path_or_fileobj="./file.txt",
|
133 |
+
# path_in_repo="file.txt",
|
134 |
+
# repo_id="Namitg02/Test",
|
135 |
+
# repo_type="space"
|
136 |
+
# )
|
137 |
|
138 |
print("upload section passed")
|
139 |
|