Spaces:
Paused
Paused
Update app.py
Browse files71 unmodified lines727374757576777879808182838428 unmodified lines113114115110111116117118119885 unmodified lines1005100610071003100810091010101110121013101410151016101710181019102010211022102310241025290 unmodified lines1316131713181300130113021303130413051306130713191320132171 unmodified lines "google/gemma-2-2b-it": 2048, "openai-community/gpt2": 1024, "microsoft/phi-2": 2048, "TinyLlama/TinyLlama-1.1B-Chat-v1.0": 2048 "TinyLlama/TinyLlama-1.1B-Chat-v1.0": 2048, "VAGOsolutions/Llama-3-SauerkrautLM-8b-Instruct": 2048, "VAGOsolutions/Llama-3.1-SauerkrautLM-8b-Instruct": 4096, "VAGOsolutions/SauerkrautLM-Nemo-12b-Instruct": 4096, "openGPT-X/Teuken-7B-instruct-research-v0.4": 4096, "Qwen/Qwen2.5-7B-Instruct": 131072, "tiiuae/falcon-7b-instruct": 8192, }, "Groq API": { "gemma2-9b-it": 8192,28 unmodified lines }, "GLHF API": { "mistralai/Mixtral-8x7B-Instruct-v0.1": 32768, "mistralai/Mixtral-8x7B-Instruct-v0.2": 32768, "NousResearch/Nous-Hermes-2-Solar-10.7B": 32768,# "NousResearch/Nous-Hermes-2-Solar-10.7B": 32768, "01-ai/Yi-34B-Chat": 32768, "mistralai/Mistral-7B-Instruct-v0.3": 32768, "microsoft/phi-3-mini-4k-instruct": 4096,885 unmodified lines ) send_to_model_btn = gr.Button("๐ Send to Model", variant="primary") open_chatgpt_button = gr.Button("๐ Open ChatGPT") with gr.Row(): chatgpt_link = gr.HTML( """ <div style="text-align: center; margin: 10px;"> <a href="https://chat.openai.com/" target="_blank" style="display: inline-block; padding: 10px 20px; background-color: #2C3E50; color: white; text-decoration: none; border-radius: 5px; font-weight: bold;"> ๐ Open ChatGPT in New Tab </a> </div> """ ) with gr.Column(scale=1): summary_output = gr.Textbox(290 unmodified lines logging.error(f"Error creating download file: {e}") return []
# ChatGPT handler open_chatgpt_button.click( fn=lambda: "window.open('https://chat.openai.com/', '_blank'); return 'Opened ChatGPT in new tab';", inputs=None, outputs=progress_status, js=True )
# Model processing # Model processing button send_to_model_btn.click(app.py+23-12