Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -250,7 +250,7 @@ def agent(prompt_in,history,mod=2,tok_in=""):
|
|
250 |
|
251 |
elif 'READ_FILE' in fn:
|
252 |
try:
|
253 |
-
file_read = fs.read_text(f'spaces/{user_}{repo_}/{com}',detail=False)
|
254 |
except Exception as e:
|
255 |
print(e)
|
256 |
file_read="FILE HAS NO CONTENT"
|
|
|
250 |
|
251 |
elif 'READ_FILE' in fn:
|
252 |
try:
|
253 |
+
file_read = fs.read_text(f'spaces/{user_}{repo_}/{com.strip("./")}',detail=False)
|
254 |
except Exception as e:
|
255 |
print(e)
|
256 |
file_read="FILE HAS NO CONTENT"
|