zhl commited on
Commit ·
57b71cf
1
Parent(s): 99f5a39
agent.wang first commit.
Browse files- analysis_result.py +1 -0
- app.py +1 -0
- requirements.txt +1 -0
analysis_result.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import base64
|
| 2 |
import json
|
|
|
|
| 3 |
from openai import OpenAI
|
| 4 |
from openai import APIError, AuthenticationError, NotFoundError
|
| 5 |
|
|
|
|
| 1 |
import base64
|
| 2 |
import json
|
| 3 |
+
os.system("pip install openai")
|
| 4 |
from openai import OpenAI
|
| 5 |
from openai import APIError, AuthenticationError, NotFoundError
|
| 6 |
|
app.py
CHANGED
|
@@ -2,6 +2,7 @@ import gradio as gr
|
|
| 2 |
import base64
|
| 3 |
import json
|
| 4 |
import time
|
|
|
|
| 5 |
from openai import OpenAI, APITimeoutError, APIError
|
| 6 |
import io
|
| 7 |
import logging
|
|
|
|
| 2 |
import base64
|
| 3 |
import json
|
| 4 |
import time
|
| 5 |
+
os.system("pip install openai")
|
| 6 |
from openai import OpenAI, APITimeoutError, APIError
|
| 7 |
import io
|
| 8 |
import logging
|
requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
openai
|