Spaces:
Runtime error
Runtime error
v0.1r2
Browse files
app.py
CHANGED
@@ -11,7 +11,6 @@ AGS_FILENAME = os.getenv("AGS_FILENAME") or "gemma-1.1-2b-it-Q4_K_M.gguf"
|
|
11 |
AGS_LLAMA_CONFIG = {
|
12 |
"prompt_format": "raw"
|
13 |
}
|
14 |
-
AGS_TITLE = os.getenv("AGS_TITLE") or "API GGUF Space"
|
15 |
|
16 |
try:
|
17 |
AGS_LLAMA_CONFIG = json.loads(os.getenv("AGS_LLAMA_CONFIG"))
|
@@ -60,7 +59,7 @@ def main():
|
|
60 |
with gr.Interface(fn=chat, inputs=[inpt:=gr.Textbox()], outputs="text") as interface:
|
61 |
with gr.Row(visible=False):
|
62 |
shadow_input = gr.Textbox(visible=False)
|
63 |
-
shadow_input.submit(api_chat, inputs=[inpt, shadow_input], api_name="api_chat"
|
64 |
interface.launch(debug=True, show_api=GRADIO_SHOW_API_INFO)
|
65 |
|
66 |
if __name__ == "__main__":
|
|
|
11 |
AGS_LLAMA_CONFIG = {
|
12 |
"prompt_format": "raw"
|
13 |
}
|
|
|
14 |
|
15 |
try:
|
16 |
AGS_LLAMA_CONFIG = json.loads(os.getenv("AGS_LLAMA_CONFIG"))
|
|
|
59 |
with gr.Interface(fn=chat, inputs=[inpt:=gr.Textbox()], outputs="text") as interface:
|
60 |
with gr.Row(visible=False):
|
61 |
shadow_input = gr.Textbox(visible=False)
|
62 |
+
shadow_input.submit(api_chat, inputs=[inpt, shadow_input], api_name="api_chat")
|
63 |
interface.launch(debug=True, show_api=GRADIO_SHOW_API_INFO)
|
64 |
|
65 |
if __name__ == "__main__":
|