add fireworks
Browse filesFiles changed (2)
- app.py+35
- requirements.txt+2-1
6 unmodified lines789101112284 unmodified lines2972982993003013026 unmodified linesimport hyperbolic_gradioimport perplexity_gradioimport mistral_gradio284 unmodified linesEach model has different context window sizes (from 8k to 256k tokens) and specialized capabilities.""")demo.launch(ssr_mode=False)6 unmodified lines78910111213284 unmodified lines2982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363376 unmodified linesimport hyperbolic_gradioimport perplexity_gradioimport mistral_gradioimport fireworks_gradio284 unmodified linesEach model has different context window sizes (from 8k to 256k tokens) and specialized capabilities.""")with gr.Tab("Fireworks"):with gr.Row():fireworks_model = gr.Dropdown(choices=['f1-preview', # Latest F1 preview model'f1-mini-preview', # Smaller, faster model],value='f1-preview', # Default to preview modellabel="Select Fireworks Model",interactive=True)fireworks_interface = gr.load(name=fireworks_model.value,src=fireworks_gradio.registry,fill_height=True)def update_fireworks_model(new_model):return gr.load(name=new_model,src=fireworks_gradio.registry,fill_height=True)fireworks_model.change(fn=update_fireworks_model,inputs=[fireworks_model],outputs=[fireworks_interface])gr.Markdown("""**Note:** You need a Fireworks AI API key to use these models. Get one at [Fireworks AI](https://app.fireworks.ai/).""")demo.launch(ssr_mode=False)
4 unmodified lines56784 unmodified linesxai-gradiohyperbolic-gradioperplexity-gradiomistral-gradio4 unmodified lines567894 unmodified linesxai-gradiohyperbolic-gradioperplexity-gradiomistral-gradiogit+https://github.com/AK391/fireworks-ai-gradio.git
app.py+35
requirements.txt+2-1