Update app.py
Browse files
app.py
CHANGED
@@ -1,22 +1,3 @@
|
|
1 |
-
# -*- coding: utf-8 -*-
|
2 |
-
"""gradio_chat_codeinter4.ipynb
|
3 |
-
|
4 |
-
Automatically generated by Colaboratory.
|
5 |
-
|
6 |
-
Original file is located at
|
7 |
-
https://colab.research.google.com/drive/1wcp7vIMxSn44xLuI49FtY9kUYGvnS8yv
|
8 |
-
"""
|
9 |
-
|
10 |
-
!pip install gradio
|
11 |
-
!pip install openai
|
12 |
-
|
13 |
-
import os
|
14 |
-
|
15 |
-
os.environ["TEST_OPENAI_KEY"] = "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"
|
16 |
-
os.environ["ASSIST_ID"] = "asst_KHpzJRBEgONhDf6cIpxr1Avt"
|
17 |
-
os.environ["MAX_TRIAL"] = "50"
|
18 |
-
os.environ["INTER_SEC"] = "3"
|
19 |
-
|
20 |
import os
|
21 |
import time
|
22 |
import datetime
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import os
|
2 |
import time
|
3 |
import datetime
|