unclemusclez commited on
Commit
6a57610
·
verified ·
1 Parent(s): b92833c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -18,7 +18,11 @@ from textwrap import dedent
18
 
19
  HF_TOKEN = os.environ.get("HF_TOKEN")
20
  OLLAMA_USERNAME = os.environ.get("OLLAMA_USERNAME")
21
- ollama_pub = f"cat ~/.ollama/id_ed25519.pub"
 
 
 
 
22
 
23
  def process_model(model_id, q_method, latest, oauth_token: gr.OAuthToken | None):
24
  #def process_model(model_id, q_method, latest):
@@ -131,7 +135,7 @@ with gr.Blocks(css=css) as demo:
131
  gr.Image(show_label=False),
132
  ],
133
  title="Create your own Ollama Models and Push them to the Ollama Library, blazingly fast ⚡!",
134
- description=ollama_pub,
135
  api_name=False
136
  )
137
 
 
18
 
19
  HF_TOKEN = os.environ.get("HF_TOKEN")
20
  OLLAMA_USERNAME = os.environ.get("OLLAMA_USERNAME")
21
+ ollama_pubkey = open("~/.ollama/id_ed25519.pub", "r")
22
+ ollama_pubkey_print = print(ollama_pub.read())
23
+
24
+
25
+
26
 
27
  def process_model(model_id, q_method, latest, oauth_token: gr.OAuthToken | None):
28
  #def process_model(model_id, q_method, latest):
 
135
  gr.Image(show_label=False),
136
  ],
137
  title="Create your own Ollama Models and Push them to the Ollama Library, blazingly fast ⚡!",
138
+ description=ollama_pubkey_print,
139
  api_name=False
140
  )
141