Spaces:
No application file
No application file
blabla ohoho
Browse files- README.md +6 -6
- app.py → main.py +4 -0
README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 2.9.1
|
| 8 |
python_version: 3.10.4
|
| 9 |
app_file: app.py
|
|
|
|
| 10 |
pinned: false
|
| 11 |
-
license: cc-by-nc-4.0
|
| 12 |
---
|
| 13 |
|
| 14 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Flask + dev server
|
| 3 |
+
emoji: ⚗️
|
| 4 |
+
colorFrom: gray
|
| 5 |
+
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 2.9.1
|
| 8 |
python_version: 3.10.4
|
| 9 |
app_file: app.py
|
| 10 |
+
license: mit
|
| 11 |
pinned: false
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces#reference
|
app.py → main.py
RENAMED
|
@@ -26,6 +26,10 @@ client = OpenAI(
|
|
| 26 |
# Create new assistant or load existing
|
| 27 |
assistant_id = functions.create_assistant(client)
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
# Start conversation thread
|
| 30 |
@app.route('/start', methods=['GET'])
|
| 31 |
def start_conversation():
|
|
|
|
| 26 |
# Create new assistant or load existing
|
| 27 |
assistant_id = functions.create_assistant(client)
|
| 28 |
|
| 29 |
+
@app.route("/")
|
| 30 |
+
def index():
|
| 31 |
+
return render_template("index.html")
|
| 32 |
+
|
| 33 |
# Start conversation thread
|
| 34 |
@app.route('/start', methods=['GET'])
|
| 35 |
def start_conversation():
|