Spaces:
Runtime error
Runtime error
File size: 627 Bytes
1375ad0 0cc4a5a 1375ad0 0cc4a5a 1375ad0 bd7288e 0cc4a5a 3f7af4c 0cc4a5a 1375ad0 bd7288e 0f051eb 1375ad0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import gradio as gr
from gradio_client import Client
# Create a client to interact with your Space
client = Client("umutbozdag/humanizer_model")
def generate_text(input_text):
# Use the client to predict using your Space
result = client.predict(
input_text, # str in 'Input Text' Textbox component
api_name="/predict"
)
return result
iface = gr.Interface(
fn=generate_text,
inputs=gr.Textbox(lines=5, label="Input Text"),
outputs=gr.Textbox(label="Generated Text"),
title="Text Humanizer",
description="Enter text to generate a more human-like version."
)
iface.launch() |