Spaces:
Runtime error
Runtime error
Commit
·
8a453db
1
Parent(s):
80f2623
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,6 @@ class ChatWrapper:
|
|
48 |
import openai
|
49 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
50 |
# Run chain and append input.
|
51 |
-
start_time = time.time()
|
52 |
output = chain({"question": inp, "chat_history": history})["answer"]
|
53 |
history.append((inp, output))
|
54 |
except Exception as e:
|
|
|
48 |
import openai
|
49 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
50 |
# Run chain and append input.
|
|
|
51 |
output = chain({"question": inp, "chat_history": history})["answer"]
|
52 |
history.append((inp, output))
|
53 |
except Exception as e:
|