Files changed (1) hide show
  1. app.py +41 -10
app.py CHANGED
@@ -1,10 +1,41 @@
1
- import gradio as gr
2
-
3
- with gr.Blocks(fill_height=True) as demo:
4
- with gr.Sidebar():
5
- gr.Markdown("# Inference Provider")
6
- gr.Markdown("This Space showcases the moonshotai/Kimi-K2-Instruct model, served by the novita API. Sign in with your Hugging Face account to use this API.")
7
- button = gr.LoginButton("Sign in")
8
- gr.load("models/moonshotai/Kimi-K2-Instruct", accept_token=button, provider="novita")
9
-
10
- demo.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "nbformat": 4,
3
+ "nbformat_minor": 0,
4
+ "metadata": {
5
+ "colab": {
6
+ "provenance": []
7
+ },
8
+ "kernelspec": {
9
+ "name": "python3",
10
+ "display_name": "Python 3"
11
+ },
12
+ "language_info": {
13
+ "name": "python"
14
+ },
15
+ "widgets": {
16
+ "application/vnd.jupyter.widget-state+json": {
17
+ "c640b2a60512468e81a78e0ca10f0cf3": {
18
+ "model_module": "@jupyter-widgets/controls",
19
+ "model_name": "HBoxModel",
20
+ "model_module_version": "1.5.0",
21
+ "state": {
22
+ "_dom_classes": [],
23
+ "_model_module": "@jupyter-widgets/controls",
24
+ "_model_module_version": "1.5.0",
25
+ "_model_name": "HBoxModel",
26
+ "_view_count": null,
27
+ "_view_module": "@jupyter-widgets/controls",
28
+ "_view_module_version": "1.5.0",
29
+ "_view_name": "HBoxView",
30
+ "box_style": "",
31
+ "children": [
32
+ "IPY_MODEL_aba037a8f9b149f2a98b89f14dcc50f8",
33
+ "IPY_MODEL_10ae23fe60ac4d349c1f67a2a33bf942",
34
+ "IPY_MODEL_e4dd109ffb4e449ba27bab87e65e2010"
35
+ ],
36
+ "layout": "IPY_MODEL_9b87892d90dc40e1b7f9837137cbc255"
37
+ }
38
+ },
39
+ "aba037a8f9b149f2a98b89f14dcc50f8": {
40
+ "model_module": "@jupyter-widgets/controls",
41
+ "model_name": "HTMLModel",