Ollama / app.py
ancerlop's picture
Update app.py
cb17244
raw
history blame contribute delete
432 Bytes
import gradio as gr
from gradio_client import Client
client = Client("https://08661de9477c2ac001.gradio.live")
# Definir la funci贸n de predicci贸n
def predict(text):
result = client.predict(
text
)
return result
# Crear una interfaz Gradio
iface = gr.Interface(
fn=predict,
inputs=gr.Textbox(),
outputs=gr.Textbox(),
live=False,
title="Ollama"
)
# Iniciar la interfaz Gradio
iface.launch()