Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ with gr.Blocks(theme=gr.themes.Monochrome(),css="footer{display:none !important}
|
|
| 27 |
|
| 28 |
# Creating a new file with the user id to save the user responses and chat bot responses to the repository
|
| 29 |
repo = g.get_user().get_repo("CATDATA")
|
| 30 |
-
filename = str(
|
| 31 |
repo.create_file(filename, "Saving" + filename, "")
|
| 32 |
|
| 33 |
return gr.Markdown(f"<h1><center> Session Id: {new_id} </center></h1>",visible=True) # Returning the "Markdown" object with what we want.
|
|
|
|
| 27 |
|
| 28 |
# Creating a new file with the user id to save the user responses and chat bot responses to the repository
|
| 29 |
repo = g.get_user().get_repo("CATDATA")
|
| 30 |
+
filename = str(new_id) + '.txt'
|
| 31 |
repo.create_file(filename, "Saving" + filename, "")
|
| 32 |
|
| 33 |
return gr.Markdown(f"<h1><center> Session Id: {new_id} </center></h1>",visible=True) # Returning the "Markdown" object with what we want.
|