Spaces:
Sleeping
Sleeping
test with ml loading
Browse files- app.py +8 -8
- requirements.txt +1 -2
app.py
CHANGED
|
@@ -1,17 +1,17 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from
|
| 3 |
|
| 4 |
# from huggingface_hub import InferenceClient
|
| 5 |
# API_URL = "https://api-inference.huggingface.co/models/esteele/carlas-loan-classifier-model"
|
| 6 |
-
client =
|
| 7 |
#
|
| 8 |
|
| 9 |
-
def greet(name):
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
inface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 14 |
-
inface.launch()
|
| 15 |
|
| 16 |
def predict(
|
| 17 |
loan_original_amount,
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from gradio_client import Client
|
| 3 |
|
| 4 |
# from huggingface_hub import InferenceClient
|
| 5 |
# API_URL = "https://api-inference.huggingface.co/models/esteele/carlas-loan-classifier-model"
|
| 6 |
+
client = Client("esteele/carlas-loan-classifier-model")
|
| 7 |
#
|
| 8 |
|
| 9 |
+
# def greet(name):
|
| 10 |
+
# return "Hello " + name + "!!"
|
| 11 |
+
#
|
| 12 |
+
#
|
| 13 |
+
# inface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 14 |
+
# inface.launch()
|
| 15 |
|
| 16 |
def predict(
|
| 17 |
loan_original_amount,
|
requirements.txt
CHANGED
|
@@ -1,3 +1,2 @@
|
|
| 1 |
gradio
|
| 2 |
-
|
| 3 |
-
pandas
|
|
|
|
| 1 |
gradio
|
| 2 |
+
gradio_client
|
|
|