Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,6 +20,7 @@ HOME = os.environ.get("HOME")
|
|
20 |
token = os.environ.get("HF_TOKEN")
|
21 |
library_username = os.environ.get("OLLAMA_USERNAME").lower()
|
22 |
ollama_pubkey = None
|
|
|
23 |
# model.num_parameters()
|
24 |
def regenerate_pubkey(pubkey, oauth_token: gr.OAuthToken | None):
|
25 |
if oauth_token.token is None:
|
@@ -235,9 +236,9 @@ with gr.Blocks(css=css) as demo:
|
|
235 |
label="Copy this and paste this into your Ollama profile.",
|
236 |
)
|
237 |
|
238 |
-
|
239 |
-
label="Ollama
|
240 |
-
info="Input
|
241 |
)
|
242 |
|
243 |
ollama_library_username = gr.Textbox(
|
|
|
20 |
token = os.environ.get("HF_TOKEN")
|
21 |
library_username = os.environ.get("OLLAMA_USERNAME").lower()
|
22 |
ollama_pubkey = None
|
23 |
+
ollama_model_name = None
|
24 |
# model.num_parameters()
|
25 |
def regenerate_pubkey(pubkey, oauth_token: gr.OAuthToken | None):
|
26 |
if oauth_token.token is None:
|
|
|
236 |
label="Copy this and paste this into your Ollama profile.",
|
237 |
)
|
238 |
|
239 |
+
ollama_model_name = gr.Textbox(
|
240 |
+
label="Ollama Model Name",
|
241 |
+
info="Input a Custom Model Name.",
|
242 |
)
|
243 |
|
244 |
ollama_library_username = gr.Textbox(
|