ACADEE commited on
Commit
eabc94f
·
1 Parent(s): 6290da7

blabla ohoho

Browse files
Files changed (2) hide show
  1. README.md +6 -6
  2. app.py → main.py +4 -0
README.md CHANGED
@@ -1,14 +1,14 @@
1
  ---
2
- title: Chatgpt Bot
3
- emoji: 😻
4
- colorFrom: green
5
- colorTo: blue
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-config-reference
 
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():