Spaces:
Sleeping
Sleeping
Samarth991
commited on
Commit
•
2c58ef3
1
Parent(s):
493aee8
adding app
Browse files
app.py
CHANGED
@@ -125,13 +125,13 @@ def document_loader(temperature,max_tokens,api_key,model_name,file_path):
|
|
125 |
|
126 |
|
127 |
iface = gr.Interface(
|
128 |
-
fn= document_loader,
|
129 |
-
gr.Slider(0.01, 0.1, value=0.01, step=0.01 , label="temperature", info="Choose between 0.01 to 0.1"),
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
]
|
135 |
ouputs="text",
|
136 |
description ="Summarize your PDF Document having Image • HuggingFace",
|
137 |
)
|
|
|
125 |
|
126 |
|
127 |
iface = gr.Interface(
|
128 |
+
fn = document_loader,
|
129 |
+
inputs = [gr.Slider(0.01, 0.1, value=0.01, step=0.01 , label="temperature", info="Choose between 0.01 to 0.1"),
|
130 |
+
gr.Slider(512,MAX_INPUT_TOKEN_LENGTH,value=1024,step=512,label="max new tokens",info='Max new tokens'),
|
131 |
+
gr.Textbox(label="Add API key", type="password"),
|
132 |
+
gr.Dropdown(['tiiuae/falcon-7b-instruct','mistralai/Mistral-7B-v0.1'],label='Large Language Model',info='LLM Service'),
|
133 |
+
"file"
|
134 |
+
],
|
135 |
ouputs="text",
|
136 |
description ="Summarize your PDF Document having Image • HuggingFace",
|
137 |
)
|