bstraehle commited on
Commit
031211a
1 Parent(s): 7d155ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import gradio as gr
2
- import openai, os, time
 
3
 
4
  def show_json(obj):
5
  display(json.loads(obj.model_dump_json()))
@@ -12,6 +13,7 @@ def chat(message, history):
12
  instructions="You are a personal math tutor. Answer questions briefly, in a sentence or less.",
13
  model="gpt-4-1106-preview",
14
  )
 
15
  show_json(assistant)
16
 
17
  for i in range(len(message)):
 
1
  import gradio as gr
2
+ import os, time
3
+ from openai import OpenAI
4
 
5
  def show_json(obj):
6
  display(json.loads(obj.model_dump_json()))
 
13
  instructions="You are a personal math tutor. Answer questions briefly, in a sentence or less.",
14
  model="gpt-4-1106-preview",
15
  )
16
+
17
  show_json(assistant)
18
 
19
  for i in range(len(message)):