Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -46,7 +46,10 @@ def process_model(model_id, q_method, username, hf_token):
46
  shutil.rmtree(MODEL_NAME)
47
  print("Folder cleaned up successfully!")
48
 
49
- return f"Processing complete: {repo_url}"
 
 
 
50
 
51
  # Create Gradio interface
52
  iface = gr.Interface(
@@ -73,7 +76,14 @@ iface = gr.Interface(
73
  info="https://hf.co/settings/token"
74
  )
75
  ],
76
- outputs="text"
 
 
 
 
 
 
 
77
  )
78
 
79
  # Launch the interface
 
46
  shutil.rmtree(MODEL_NAME)
47
  print("Folder cleaned up successfully!")
48
 
49
+ return (
50
+ f'Find your repo <a href=\'{repo_url}\' target="_blank" style="text-decoration:underline">here</a>',
51
+ "llama.png",
52
+ )
53
 
54
  # Create Gradio interface
55
  iface = gr.Interface(
 
76
  info="https://hf.co/settings/token"
77
  )
78
  ],
79
+ outputs=[
80
+ gr.Markdown(label="output"),
81
+ gr.Image(show_label=False),
82
+ ],
83
+ title="Create your own GGUF Quants!",
84
+ description="Create GGUF quants from any Hugging Face repository! You need to specify a write token obtained in https://hf.co/settings/tokens.",
85
+ article="<p>Find your write token at <a href='https://huggingface.co/settings/tokens' target='_blank'>token settings</a></p>",
86
+
87
  )
88
 
89
  # Launch the interface