Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import json
|
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
import requests
|
5 |
-
from huggingface_hub import AsyncInferenceClient
|
6 |
|
7 |
HF_TOKEN = os.getenv('HF_TOKEN')
|
8 |
api_url = os.getenv('API_URL')
|
@@ -121,7 +121,7 @@ async def predict(message, chatbot, temperature=0.1, max_new_tokens=4096, top_p
|
|
121 |
gr.ChatInterface(
|
122 |
predict,
|
123 |
chatbot=gr.Chatbot(height=500),
|
124 |
-
textbox=gr.Textbox(
|
125 |
title=title,
|
126 |
description=description,
|
127 |
theme="abidlabs/Lime",
|
|
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
import requests
|
5 |
+
from huggingface_hub import AsyncInferenceClient ,
|
6 |
|
7 |
HF_TOKEN = os.getenv('HF_TOKEN')
|
8 |
api_url = os.getenv('API_URL')
|
|
|
121 |
gr.ChatInterface(
|
122 |
predict,
|
123 |
chatbot=gr.Chatbot(height=500),
|
124 |
+
textbox=gr.Textbox(lines=10, label="Python Code" , placeholder="Enter your Python code here..."),
|
125 |
title=title,
|
126 |
description=description,
|
127 |
theme="abidlabs/Lime",
|