Spaces:
Paused
Paused
Update app.py
Browse files71 unmodified lines7273747576777828 unmodified lines107108109110111112113114885 unmodified lines1000100110021003100410051006290 unmodified lines1297129812991300130113021303130413051306130713081309131071 unmodified lines"google/gemma-2-2b-it": 2048,"openai-community/gpt2": 1024,"microsoft/phi-2": 2048,"TinyLlama/TinyLlama-1.1B-Chat-v1.0": 2048},"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,"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.Column(scale=1):summary_output = gr.Textbox(290 unmodified lineslogging.error(f"Error creating download file: {e}")return []# ChatGPT handleropen_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 buttonsend_to_model_btn.click(71 unmodified lines7273747576777879808182838428 unmodified lines113114115116117118119885 unmodified lines100510061007100810091010101110121013101410151016101710181019102010211022102310241025290 unmodified lines13161317131813191320132171 unmodified lines"google/gemma-2-2b-it": 2048,"openai-community/gpt2": 1024,"microsoft/phi-2": 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,# "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")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 lineslogging.error(f"Error creating download file: {e}")return []# Model processing# Model processing buttonsend_to_model_btn.click(
app.py+23-12