Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,6 @@ OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
|
| 15 |
|
| 16 |
REPO_ID = "meta-llama/Llama-3.1-8B-Instruct"
|
| 17 |
PROVIDER_TYPE = "openai" # "openai" or "huggingface"
|
| 18 |
-
include_vision = True
|
| 19 |
|
| 20 |
|
| 21 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
@@ -50,11 +49,8 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 50 |
else:
|
| 51 |
print(f"Provider {PROVIDER_TYPE} not supported.")
|
| 52 |
return f"Provider {PROVIDER_TYPE} not supported", None
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
else:
|
| 56 |
-
vision_llm = None
|
| 57 |
-
agent = BasicAgent(chat, vision_llm)
|
| 58 |
|
| 59 |
except Exception as e:
|
| 60 |
print(f"Error instantiating agent: {e}")
|
|
|
|
| 15 |
|
| 16 |
REPO_ID = "meta-llama/Llama-3.1-8B-Instruct"
|
| 17 |
PROVIDER_TYPE = "openai" # "openai" or "huggingface"
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
|
|
| 49 |
else:
|
| 50 |
print(f"Provider {PROVIDER_TYPE} not supported.")
|
| 51 |
return f"Provider {PROVIDER_TYPE} not supported", None
|
| 52 |
+
|
| 53 |
+
agent = BasicAgent(chat)
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
except Exception as e:
|
| 56 |
print(f"Error instantiating agent: {e}")
|