api / app.py
MohammadHugging's picture
update app.[y
1eb85f0 verified
raw
history blame contribute delete
426 Bytes
import gradio as gr
# def greet(name):
# return "Hello " + name + "!!"
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
# iface.launch()
from gradio_client import Client
client = Client("huggingface-projects/llama-2-13b-chat")
result = client.predict(
message="Hello!!",
request="Hello!!",
param_3=1024,
param_4=0.6,
param_5=0.9,
param_6=50,
param_7=1.2,
api_name="/chat"
)
print(result)