Check env variables for API keys
Browse filesFiles changed (14)
- app_cerebras.py+3-1
- app_claude.py+3-1
- app_fireworks.py+3-1
- app_gemini.py+3-1
- app_groq.py+3-1
- app_hyperbolic.py+3-1
- app_mistral.py+3-1
- app_nvidia.py+3-1
- app_openai.py+3-1
- app_perplexity.py+3-1
- app_qwen.py+3-1
- app_sambanova.py+3-1
- app_together.py+3-1
- app_xai.py+3-1
123456 unmodified lines1213141315161718import os
import cerebras_gradio
from utils import get_app6 unmodified lines ], default_model="llama3.1-70b", registry=cerebras_gradio.registry, accept_token=True, accept_token=not os.getenv("CEREBRAS_API_KEY"),)
if __name__ == "__main__":123458 unmodified lines1415161517181920import os
import anthropic_gradio
from utils import get_app8 unmodified lines ], default_model="claude-3-5-sonnet-20241022", registry=anthropic_gradio.registry, accept_token=True, accept_token=not os.getenv("ANTHROPIC_API_KEY"),)
if __name__ == "__main__":123455 unmodified lines1112131214151617import os
import fireworks_gradio
from utils import get_app5 unmodified lines ], default_model="f1-preview", registry=fireworks_gradio.registry, accept_token=False, accept_token=not os.getenv("FIREWORKS_API_KEY"),)
if __name__ == "__main__":123457 unmodified lines1314151416171819import os
import gemini_gradio
from utils import get_app7 unmodified lines ], default_model="gemini-1.5-pro", registry=gemini_gradio.registry, accept_token=False, accept_token=not os.getenv("GEMINI_API_KEY"),)
if __name__ == "__main__":1234512 unmodified lines1819201921222324import os
import groq_gradio
from utils import get_app12 unmodified lines ], default_model="llama3-groq-70b-8192-tool-use-preview", registry=groq_gradio.registry, accept_token=False, accept_token=not os.getenv("GROQ_API_KEY"),)
if __name__ == "__main__":1234512 unmodified lines1819201921222324import os
import hyperbolic_gradio
from utils import get_app12 unmodified lines ], default_model="Qwen/Qwen2.5-Coder-32B-Instruct", registry=hyperbolic_gradio.registry, accept_token=False, accept_token=not os.getenv("HYPERBOLIC_API_KEY"),)
if __name__ == "__main__":1234514 unmodified lines2021222123242526import os
import mistral_gradio
from utils import get_app14 unmodified lines ], default_model="pixtral-large-latest", registry=mistral_gradio.registry, accept_token=False, accept_token=not os.getenv("MISTRAL_API_KEY"),)
if __name__ == "__main__":1234539 unmodified lines4546474648495051import os
import nvidia_gradio
from utils import get_app39 unmodified lines ], default_model="meta/llama-3.1-70b-instruct", registry=nvidia_gradio.registry, accept_token=True, accept_token=not os.getenv("NVIDIA_API_KEY"),)
if __name__ == "__main__":1234521 unmodified lines2728292830313233import os
import openai_gradio
from utils import get_app21 unmodified lines ], default_model="gpt-4o-2024-11-20", registry=openai_gradio.registry, accept_token=False, accept_token=not os.getenv("OPENAI_API_KEY"),)
if __name__ == "__main__":1234510 unmodified lines1617181719202122import os
import perplexity_gradio
from utils import get_app10 unmodified lines ], default_model="llama-3.1-sonar-large-128k-online", registry=perplexity_gradio.registry, accept_token=True, accept_token=not os.getenv("PERPLEXITY_API_KEY"),)
if __name__ == "__main__":1234512 unmodified lines1819201921222324import os
import dashscope_gradio
from utils import get_app12 unmodified lines ], default_model="qwen-turbo-latest", registry=dashscope_gradio.registry, accept_token=False, accept_token=not os.getenv("DASHSCOPE_API_KEY"),)
if __name__ == "__main__":1234510 unmodified lines1617181719202122import os
import sambanova_gradio
from utils import get_app10 unmodified lines ], default_model="Llama-3.2-90B-Vision-Instruct", registry=sambanova_gradio.registry, accept_token=False, accept_token=not os.getenv("SAMBANOVA_API_KEY"), multimodal=True,)
1234537 unmodified lines4344454446474849import os
import together_gradio
from utils import get_app37 unmodified lines ], default_model="meta-llama/Llama-3.2-11B-Vision-Instruct-Turbo", registry=together_gradio.registry, accept_token=False, accept_token=not os.getenv("TOGETHER_API_KEY"), multimodal=True,)
123455 unmodified lines1112131214151617import os
import xai_gradio
from utils import get_app5 unmodified lines ], default_model="grok-vision-beta", registry=xai_gradio.registry, accept_token=False, accept_token=not os.getenv("XAI_API_KEY"),)
if __name__ == "__main__":app_cerebras.py+3-1
app_claude.py+3-1
app_fireworks.py+3-1
app_gemini.py+3-1
app_groq.py+3-1
app_hyperbolic.py+3-1
app_mistral.py+3-1
app_nvidia.py+3-1
app_openai.py+3-1
app_perplexity.py+3-1
app_qwen.py+3-1
app_sambanova.py+3-1
app_together.py+3-1
app_xai.py+3-1