Skip to content

Commit d91a016

Browse files
committed
fix: Gradio server_name
1 parent 5290f9b commit d91a016

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

extra/dashboard/app.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
import os
21
from contextlib import ExitStack
32
from dataclasses import dataclass
4-
from typing import Tuple, List
3+
from typing import List
54

65
import click
76
import gradio as gr
87
import pandas as pd
9-
from github import Github, Auth
108

119
from parse_results import build_results
1210

@@ -69,7 +67,7 @@ def update_bench(model, percentiles):
6967
return res + [summary_table()]
7068

7169
def summary_table() -> pd.DataFrame:
72-
data = df_bench.groupby(['model', 'run_id','rate']).agg(
70+
data = df_bench.groupby(['model', 'run_id', 'rate']).agg(
7371
{'inter_token_latency_ms_p90': 'mean', 'time_to_first_token_ms_p90': 'mean',
7472
'e2e_latency_ms_p90': 'mean', 'token_throughput_secs': 'mean',
7573
'successful_requests': 'mean', 'error_rate': 'mean'}).reset_index()
@@ -196,7 +194,7 @@ def load_datasource(datasource, fn):
196194
demo.load(load_demo, [model, percentiles_bench],
197195
[item["component"] for item in line_plots_bench] + [table])
198196

199-
demo.launch(server_port=port)
197+
demo.launch(server_port=port, server_name="0.0.0.0")
200198

201199

202200
@click.command()

0 commit comments

Comments
 (0)